const data = {
  baiduJS: 0.15,
  baiduCT: 0.25,
  kuaishou: 0.3,
  kuaishouJS: 0.7,
  douyinHS: 0.3,
  douyinSC: 0.3,
  douyinJS: 1.5,
  xigua: 0.3,
  fanqieXS: 0.3,
  fanqieCT: 0.2,
  fanqieYY: 0.2,
  toutiao: 0.5,
  toutiaoJS: 0.5,
  youshi: 0.5,
  wukong: 0.5,
  hongguoMF: 0.5,
  daishuDD: 0.3,
  douyin: 0.2,
  danhua: 0.1,
  changdu: 0.1,
  sudu: 0.1,
  shengdu: 0.1,
  qimao: 0.1,
};

function compute(data) {
  return Object.keys(data).reduce((pre, cur) => {
    return pre + data[cur] * 100;
  }, 0);
}
// node .\doc\money\money4.js
console.log(Object.keys(data).length, compute(data) / 100);
